#ifndef QTIPS_H
#define QTIPS_H

#include <QWidget>
#include <QPaintEvent>
class QTips : public QWidget
{
    Q_OBJECT
    Q_PROPERTY(QString content READ getContent WRITE setContent);
    Q_PROPERTY(bool state READ getState WRITE setState)
    QString content = "Hello,World!";
    bool  state;
public:
    explicit QTips(QWidget *parent = nullptr);
    QString  getContent() const;
    void setContent(const QString content);

    bool getState() const;
    void setState(const bool state);
protected:
    void paintEvent(QPaintEvent *event) override;
signals:

};

#endif // QTIPS_H
